package com.ruoyi.equ.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 设备领用归还明细信息对象 equ_col_retu_detail
 * 
 * @author ruoyi
 * @date 2023-05-16
 */
public class EquColRetuDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 领用归还id */
    @Excel(name = "领用归还id")
    private String colRetId;

    /** 序号 */
    @Excel(name = "序号")
    private String sorts;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String equName;

    /** 唯一性编号 */
    @Excel(name = "唯一性编号")
    private String equNum;

    /** 设备id */
    @Excel(name = "设备id")
    private String equId;

    /** 借出状态是否完好 */
    @Excel(name = "借出状态是否完好")
    private String colState;

    /** 归还状态是否完好 */
    @Excel(name = "归还状态是否完好")
    private String retState;

    /** 是否在校验周期 */
    @Excel(name = "是否在校验周期")
    private String isCert;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 设备检定有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "设备检定有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date equInvalidity;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setColRetId(String colRetId) 
    {
        this.colRetId = colRetId;
    }

    public String getColRetId() 
    {
        return colRetId;
    }
    public void setSorts(String sorts) 
    {
        this.sorts = sorts;
    }

    public String getSorts() 
    {
        return sorts;
    }
    public void setEquName(String equName) 
    {
        this.equName = equName;
    }

    public String getEquName() 
    {
        return equName;
    }
    public void setEquNum(String equNum) 
    {
        this.equNum = equNum;
    }

    public String getEquNum() 
    {
        return equNum;
    }
    public void setColState(String colState) 
    {
        this.colState = colState;
    }

    public String getColState() 
    {
        return colState;
    }
    public void setRetState(String retState) 
    {
        this.retState = retState;
    }

    public String getRetState() 
    {
        return retState;
    }
    public void setIsCert(String isCert) 
    {
        this.isCert = isCert;
    }

    public String getIsCert() 
    {
        return isCert;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setEquInvalidity(Date equInvalidity) 
    {
        this.equInvalidity = equInvalidity;
    }

    public Date getEquInvalidity() 
    {
        return equInvalidity;
    }

    public String getEquId() {
        return equId;
    }

    public void setEquId(String equId) {
        this.equId = equId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("colRetId", getColRetId())
            .append("sorts", getSorts())
            .append("equName", getEquName())
            .append("equNum", getEquNum())
            .append("colState", getColState())
            .append("retState", getRetState())
            .append("isCert", getIsCert())
            .append("remarks", getRemarks())
            .append("equInvalidity", getEquInvalidity())
            .toString();
    }
}
